package com.laboratory.manage.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laboratory.manage.dao.FinancialDao;
import com.laboratory.manage.entity.FinancialEntity;
import com.laboratory.manage.service.FinancialService;
import com.laboratory.manage.utils.PageUtils;
import com.laboratory.manage.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: qinaolong
 * @Date: 2023/05/14/13:56
 * @Description:
 */
@Service
public class FinancialServiceImpl extends ServiceImpl<FinancialDao, FinancialEntity> implements FinancialService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FinancialEntity> page = this.page(new Query<FinancialEntity>().getPage(params),
                new QueryWrapper<FinancialEntity>()
        );
        return new PageUtils(page);
    }
}
